package com.twu.biblioteca;

public class ListMoviesState implements State {

    public static ListMoviesState instance = new ListMoviesState();
    BibliotecaApp biblio;


    private ListMoviesState() {

    }

    public void setBibliotecaApp(BibliotecaApp newBiblioteca) {
        this.biblio = newBiblioteca;
    }

    @Override
    public String getMessage() {
        return biblio.listMovies() +
                "\n\nPress any number to go back to the main menu.";
    }

    @Override
    public String getMenuOption() {
        return "View Movies";
    }

    @Override
    public State change(String input) {
        return MenuState.instance;
    }
}
